package com.docted.design.pattern.proxy.dynamic.customer;

import com.docted.design.pattern.proxy.dynamic.jdk.DoCted;
import com.docted.design.pattern.proxy.dynamic.jdk.Graduate;

/**
 * @author DoCted
 * @since v1.0 2018/3/11
 */
public class DocProxyTest {


    public static void main(String[] args) {

        DoCted doCted = new DoCted();

        try {
            Graduate graduate = (Graduate) new DocJobAgent().getInstance(doCted);
            graduate.findJob();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
